<%-- 
    Document   : index
    Created on : Apr 5, 2011, 3:54:46 PM
    Author     : 51158282
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form name="testLogin" id="testLogin" method="post" action="<%=(String)request.getAttribute("javax.servlet.forward.request_uri")%>">
            <input type="hidden" name="todo" id="todo" value="showAllMovies" />
            <input type="hidden" name="movieStatus" id="movieStatus" value="true" />
            <input type='submit' value='Now Showing' />
        </form>

        <form name="testLogin" id="testLogin" method="post" action="<%=(String)request.getAttribute("javax.servlet.forward.request_uri")%>">
            <input name='email' type='text' size='20' />
            <input name='password' type='text' size='20' />
            <input type="hidden" name="todo" id="todo" value="login" />
            <input type='submit' value='Login' />
        </form>

        <form name="testShowMovie" id="testShowMovie" method="post" action="<%=(String)request.getAttribute("javax.servlet.forward.request_uri")%>">
            <input type="hidden" name="todo" id="todo" value="showAllMovies" />
            <input type="hidden" name="movieStatus" id="movieStatus" value="true" />
            <input type='submit' value='showAllMovies' />
        </form>

        <form name="testShowMovie" id="testShowMovie" method="post" action="<%=(String)request.getAttribute("javax.servlet.forward.request_uri")%>">
            <input name='title' type='text' size='30' />
            <input type="hidden" name="todo" id="todo" value="searchMovie" />
            <input type='submit' value='Search' />
        </form>

        <form name="testPurchase" id="testPurchase" method="post" action="<%=(String)request.getAttribute("javax.servlet.forward.request_uri")%>">
            <input name='movieId' type='text' size='30' />
            <input type="hidden" name="todo" id="todo" value="purchase" />
            <input type='submit' value='Purchase' />
        </form>

        <form name="testShowScheduleItems" id="testShowScheduleItems" method="post" action="<%=(String)request.getAttribute("javax.servlet.forward.request_uri")%>">
            <input name='movieId' type='text' size='30' />
            <input type="hidden" name="todo" id="todo" value="showScheduleItems" />
            <input type='submit' value='Show Schedule Items' />
        </form>

    </body>
</html>
